package com.sali.design_pattern.d_strategy_pattern.lesson_02.strategy.impl;

import com.sali.design_pattern.d_strategy_pattern.lesson_02.strategy.IPayService;
import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: zhang hang
 * @date: 2023/3/26 13:19.
 * @version: 1.0
 */
@Slf4j
public class BankPayService implements IPayService {
    @Override
    public String getPayName() {
        return "bankpay";
    }

    @Override
    public void payCourse(Long courseId) {
        log.info("使用银联支付课程，{}", courseId);
    }

    @Override
    public void payVip(Integer type) {
        log.info("使用银联支付会员，{}", type);
    }

    @Override
    public void payNews(Long newsId) {
        log.info("使用银联支付文章，{}", newsId);
    }
}
